<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post" enctype="multipart/form-data">
  {% csrf_token %}
  <input type="file" name="image" accept="image/*" required>
  <button type="submit">上传并识别</button>
</form>

{% if result_img_url %}
  <h3>识别结果图：</h3>
  <img src="{{ result_img_url }}" alt="OCR结果图">
{% endif %}
</body>
</html>